From f4fea86cfa174113ea30e9cc47a1ab5ca61fadd8 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Mon, 20 May 2002 08:06:57 +0000 Subject: [PATCH] * xselect.c (symbol_to_x_atom, x_get_foreign_selection): Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field. --- src/xselect.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xselect.c b/src/xselect.c index c95cc211c1d..a92943c5381 100644 --- a/src/xselect.c +++ b/src/xselect.c @@ -200,9 +200,9 @@ symbol_to_x_atom (dpyinfo, display, sym) #endif if (!SYMBOLP (sym)) abort (); - TRACE1 (" XInternAtom %s", (char *) XSYMBOL (sym)->name->data); + TRACE1 (" XInternAtom %s", (char *) XSTRING (SYMBOL_NAME (sym))->data); BLOCK_INPUT; - val = XInternAtom (display, (char *) XSYMBOL (sym)->name->data, False); + val = XInternAtom (display, (char *) XSTRING (SYMBOL_NAME (sym))->data, False); UNBLOCK_INPUT; return val; } @@ -1272,7 +1272,7 @@ x_get_foreign_selection (selection_symbol, target_type) if (NILP (XCAR (reading_selection_reply))) error ("Timed out waiting for reply from selection owner"); if (EQ (XCAR (reading_selection_reply), Qlambda)) - error ("No `%s' selection", XSYMBOL (selection_symbol)->name->data); + error ("No `%s' selection", XSTRING (SYMBOL_NAME (selection_symbol))->data); /* Otherwise, the selection is waiting for us on the requested property. */ return -- 2.30.2